<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改结束订单" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-endorder-edit"  class="form-horizontal">
    <input name="id" value="${bpmCrmEndorder.id}" type="hidden">
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "销售员" />：                               <i class="fa fa-question-circle-o" title="销售员"></i>                                
       </label>
        <div class="col-sm-8"><input name="saleUserid" value="${bpmCrmEndorder.saleUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车辆识别号" />：                               <i class="fa fa-question-circle-o" title="车辆识别号"></i>                                
       </label>
        <div class="col-sm-8"><input name="outCarVin" value="${bpmCrmEndorder.outCarVin?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车型" />：                               <i class="fa fa-question-circle-o" title="车型"></i>                                
       </label>
        <div class="col-sm-8"><input name="outCarVehicle" value="${bpmCrmEndorder.outCarVehicle?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "结束类型"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="orderEndType" dictType="sys_crm_orderendtype" value="${bpmCrmEndorder.orderEndType?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="orderMemo" class="form-control" required>${bpmCrmEndorder.orderMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "实收总和" />：                               <i class="fa fa-question-circle-o" title="实收总和"></i>                                
       </label>
        <div class="col-sm-8"><input name="creditRealitySum" value="${bpmCrmEndorder.creditRealitySum?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "收款单据" />：                               <i class="fa fa-question-circle-o" title="收款单据"></i>                                
       </label>
        <div class="col-sm-8"><input name="creditBillFilepath" value="${bpmCrmEndorder.creditBillFilepath?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "类别" />：                               <i class="fa fa-question-circle-o" title="总额库存运输维修临牌过户报销汇款整备退车其他"></i>                                
       </label>
        <div class="col-sm-8"><input name="costType" value="${bpmCrmEndorder.costType?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "金额" />：                               <i class="fa fa-question-circle-o" title="对应成本金额"></i>                                
       </label>
        <div class="col-sm-8"><input name="costAmount" value="${bpmCrmEndorder.costAmount?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "流程单据" />：                               <i class="fa fa-question-circle-o" title="所有业务流程单据"></i>                                
       </label>
        <div class="col-sm-8"><input name="costAllBusinessFilepath" value="${bpmCrmEndorder.costAllBusinessFilepath?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "实收总和" />：                               <i class="fa fa-question-circle-o" title="实收总和"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionRealitySum" value="${bpmCrmEndorder.commissionRealitySum?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "目前成本" />：                               <i class="fa fa-question-circle-o" title="目前成本"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionCurrentCost" value="${bpmCrmEndorder.commissionCurrentCost?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "最终利润" />：                               <i class="fa fa-question-circle-o" title="最终利润"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionFinalProfit" value="${bpmCrmEndorder.commissionFinalProfit?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "最终业绩" />：                               <i class="fa fa-question-circle-o" title="最终业绩"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionFinalAchievement" value="${bpmCrmEndorder.commissionFinalAchievement?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "提成比例" />：                               <i class="fa fa-question-circle-o" title="提成比例"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionPercentage" value="${bpmCrmEndorder.commissionPercentage?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "最终提成" />：                               <i class="fa fa-question-circle-o" title="最终提成"></i>                                
       </label>
        <div class="col-sm-8"><input name="commissionFinalCommission" value="${bpmCrmEndorder.commissionFinalCommission?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "销售总监审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalSalesDirector" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalSalesDirector?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalSalesDirectorMemo" class="form-control" required>${bpmCrmEndorder.approvalSalesDirectorMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "整修评审/复盘/整理评审意见"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalReconditioning" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalReconditioning?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalReconditioningMemo" class="form-control" required>${bpmCrmEndorder.approvalReconditioningMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "维修中心审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalMaintenanceCenter" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalMaintenanceCenter?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalMaintenanceCenterMemo" class="form-control" required>${bpmCrmEndorder.approvalMaintenanceCenterMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "运输审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalTransport" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalTransport?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalTransportMemo" class="form-control" required>${bpmCrmEndorder.approvalTransportMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "出纳审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalCashier" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalCashier?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalCashierMemo" class="form-control" required>${bpmCrmEndorder.approvalCashierMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "盘点"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalInventory" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalInventory?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalInventoryMemo" class="form-control" required>${bpmCrmEndorder.approvalInventoryMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "税务审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalTax" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalTax?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalTaxMemo" class="form-control" required>${bpmCrmEndorder.approvalTaxMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "会计审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalAccounting" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalAccounting?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalAccountingMemo" class="form-control" required>${bpmCrmEndorder.approvalAccountingMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "销售总监审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalSalesDirectorReview" dictType="sys_bpm_crm_passorclose" value="${bpmCrmEndorder.approvalSalesDirectorReview?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审查备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalSalesDirectorReviewMemo" class="form-control" required>${bpmCrmEndorder.approvalSalesDirectorReviewMemo?default("")}</textarea>
        </div>
    </div>
               
</@form.form>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "bpm/endorder";
    $("#form-endorder-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-endorder-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
